<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-COMPATIBLE" content="IE=edge,chrome=1" />
    {php}
    $seo = api('System.Manage.seo', ['site_id' => SITE_ID]);
    {/php}
    <meta name="keywords" content="{$seo['data']['keywords']}" />
    <meta name="description" content="{$seo['data']['description']}"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=0.5, maximum-scale=2.0, user-scalable=yes" />
    <title>{$title ? $title.'-' : '' } {$seo['data']['title']}</title>

    <link rel="icon" type="image/x-icon" href="__STATIC__/img/bitbug_favicon.ico"/>
    <link rel="stylesheet" href="__STATIC__/ext/hui/css/hui.css">
<!--    <link rel="stylesheet" href="__STATIC__/css/normalize.css">-->
    <link rel="stylesheet" href="WAP_ADDON_CSS/base.css">

    <script src="__STATIC__/js/jquery-2.2.js"></script>
    <script src="STATIC_JS/jquery.cookie.js"></script>
    <script src="__STATIC__/ext/hui/js/hui.js" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript" src="__STATIC__/ext/hui/js/hui-accordion.js"></script>
    <script>
		var APP_KEY = "{$site_info['app_key']}";
		var API_URL = '{$API_URL}/';
		var ACCESS_TOKEN = '{$access_token}';
		window.nc_url = {
			baseUrl: "{:request()->root(true)}/",
			route: ['{:request()->siteid()}', '{:request()->addon()}', '{:request()->module()}', '{:request()->controller()}', '{:request()->action()}'],
		};
    </script>
    <script src="__STATIC__/js/common.js"></script>
    <script src="WAP_ADDON_JS/common.js"></script>
    {block name="resources"}{/block}
</head>
<body>

{block name="head"}
<header class="hui-header">
    <div id="hui-back"></div>
    <h1>{$title}</h1>
<!--    <div id="hui-header-menu"></div>-->
</header>
{/block}

{block name="main"}
{/block}

{block name="bottom"}
{:hook("diyBottomNavFetch", ["openBottomNav"=>true],[],true)}
{/block}

{block name="script"}{/block}
</body>
</html>